import request from '@/utils/request'


// 消息通知列表
export function getList (params) {
  return request({
    params,
    url: '/back/getMessageList'
  })
}

// 新增消息
export function addMessage (data) {
  return request({
    method: 'post',
    data,
    url: '/back/addMessage'
  })
}

// 删除消息
export function deleteMessage (params) {
  return request({
    method: 'DELETE',
    params,
    url: '/back/deleteMessage'
  })
}

//消息详情
export function getDetail (params) {
  return request({
    params,
    url: '/back/findByKey'
  })
}